// 获取二级分类列表
import request from '@/utils/request.js'
export const getTwoList=(id)=>{
  return request.get('/category',{params:{id}})
}

// 获取二级分类列表数据
export const getTwoDetail=(id)=>{
  return request.get('/category/sub/filter',{params:{id}})
}

// 获取分类商品
// {categoryId:xxx,page:xxx,pageSize:xxx,sortField:'publishTime'|'orderNum'|'evaluateNum'}
export const getSubCategortAPI=(data)=>{
  return request.post('/category/goods/temporary',data)
}